using AduSkin.Utility.Element;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace AZai.AControl
{
    public class AduRadioButtonIcon : RadioButton
    {
        static AduRadioButtonIcon()
        {
            ElementBase.DefaultStyle<AduRadioButtonIcon>(DefaultStyleKeyProperty);
        }

        public static readonly DependencyProperty SelectColorProperty = DependencyProperty.Register("SelectColor"
              , typeof(Brush), typeof(AduRadioButtonIcon), new FrameworkPropertyMetadata(new SolidColorBrush(Color.FromRgb(238, 121, 111))));
        /// <summary>
        /// 选中时颜色
        /// </summary>
        public Brush SelectColor
        {
            get { return (Brush)GetValue(SelectColorProperty); }
            set { SetValue(SelectColorProperty, value); }
        }

        public static readonly DependencyProperty SelectBackgroundProperty = DependencyProperty.Register("SelectBackground"
              , typeof(Brush), typeof(AduRadioButtonIcon), new FrameworkPropertyMetadata(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0))));
        /// <summary>
        /// 选中时背景色颜色
        /// </summary>
        public Brush SelectBackground
        {
            get { return (Brush)GetValue(SelectBackgroundProperty); }
            set { SetValue(SelectBackgroundProperty, value); }
        }
        public static readonly DependencyProperty MouseOverBackgroundProperty = DependencyProperty.Register("MouseOverBackground"
            , typeof(Brush), typeof(AduRadioButtonIcon), new FrameworkPropertyMetadata(new SolidColorBrush(Color.FromArgb(0, 0, 0, 0))));
        /// <summary>
        /// 选中时背景色颜色
        /// </summary>
        public Brush MouseOverBackground
        {
            get { return (Brush)GetValue(MouseOverBackgroundProperty); }
            set { SetValue(MouseOverBackgroundProperty, value); }
        }
    }
}
